package br.rfpm.dominio.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.rfpm.dao.GenericDao;
import br.rfpm.dominio.Authority;
import br.rfpm.dominio.dao.AuthorityDao;
import br.rfpm.service.AbstractService;

@Service
public class AuthorityService extends AbstractService<Authority, Long> {

	@Autowired
	private AuthorityDao authorityDao;

	@Override
	protected GenericDao<Authority, Long> getDao() {
		return this.authorityDao;
	}

	public List<Authority> listarPorAuthority(String authority) {
		return this.authorityDao.listaPorAuthority(authority);
	}

}
